package com.example.demo.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Data
public class HellLog {
    private Integer id;

    private String uid;


    private Integer floor;

    private Integer device;

    private String time;

    private String reason;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime create_time;

    private String uuid;
    private String name;




    public HellLog() {

    }

    public HellLog(Integer id, String uid, Integer floor, Integer device, String time, String reason, LocalDateTime create_time) {
        this.id = id;
        this.uid = uid;
        this.floor = floor;
        this.device = device;
        this.time = time;
        this.reason = reason;
        this.create_time = create_time;
    }

    public HellLog(Integer id, String uid, String uuid, Integer floor, Integer device, String time, String reason, LocalDateTime create_time, String name) {
        this.id = id;
        this.uid = uid;
        this.uuid = uuid;
        this.floor = floor;
        this.device = device;
        this.time = time;
        this.reason = reason;
        this.create_time = create_time;
        this.name = name;
    }
}
